package com.example.demo.model;

import java.io.Serializable;
import java.util.Date;

/**
 * +-----------------+-------------+------+-----+-------------------+----------------+
| Field           | Type        | Null | Key | Default           | Extra          |
+-----------------+-------------+------+-----+-------------------+----------------+
| employee_id     | int(11)     | NO   | PRI | NULL              | auto_increment |
| employee_name   | varchar(50) | NO   |     | NULL              |                |
| employee_sex    | varchar(10) | YES  |     | 男                |                |
| hire_date       | datetime    | NO   |     | CURRENT_TIMESTAMP |                |
| employee_mgr    | int(11)     | YES  |     | NULL              |                |
| employee_salary | float       | YES  |     | 3000              |                |
| department_id   | int(11)     | YES  |     | NULL              |                |
| update_time     | date        | YES  |     | NULL              |                |
+-----------------+-------------+------+-----+-------------------+----------------+
8 rows in set (0.00 sec)
 * @author mill
 *
 */
public class Employee implements Serializable{
	private Integer employeeId;
	private String employeeName;
	private String employeeSex;
	private Date hireDate;
	private Date updateTime;
	private Integer employeeMgr;
	private Double employeeSalary;
	private Integer departmentId;
	private TbDept tbDept;
	public Integer getEmployeeId() {
		return employeeId;
	}
	public void setEmployeeId(Integer employeeId) {
		this.employeeId = employeeId;
	}
	public String getEmployeeName() {
		return employeeName;
	}
	public void setEmployeeName(String employeeName) {
		this.employeeName = employeeName;
	}
	public String getEmployeeSex() {
		return employeeSex;
	}
	public void setEmployeeSex(String employeeSex) {
		this.employeeSex = employeeSex;
	}
	public Date getHireDate() {
		return hireDate;
	}
	public void setHireDate(Date hireDate) {
		this.hireDate = hireDate;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Integer getEmployeeMgr() {
		return employeeMgr;
	}
	public void setEmployeeMgr(Integer employeeMgr) {
		this.employeeMgr = employeeMgr;
	}
	public Double getEmployeeSalary() {
		return employeeSalary;
	}
	public void setEmployeeSalary(Double employeeSalary) {
		this.employeeSalary = employeeSalary;
	}
	public Integer getDepartmentId() {
		return departmentId;
	}
	public void setDepartmentId(Integer departmentId) {
		this.departmentId = departmentId;
	}
	
	@Override
	public String toString() {
		return "Employee [employeeId=" + employeeId + ", employeeName=" + employeeName + ", employeeSex=" + employeeSex
				+ ", hireDate=" + hireDate + ", updateTime=" + updateTime + ", employeeMgr=" + employeeMgr
				+ ", employeeSalary=" + employeeSalary + ", departmentId=" + departmentId + ", tbDept=" + tbDept + "]";
	}
	public TbDept getTbDept() {
		return tbDept;
	}
	public void setTbDept(TbDept tbDept) {
		this.tbDept = tbDept;
	}
	
	
}
